package com.zac.coroutine.algorithm.leetcode.linkedlist;

/**
 * author zac
 * date 2024/12/25
 */
public class ListNode {
    public ListNode(ListNode next, int val) {
        this.next = next;
        this.val = val;
    }

    public ListNode next;
    public int val;

    public ListNode getNext() {
        return next;
    }

    public void setNext(ListNode next) {
        this.next = next;
    }

    public int getVal() {
        return val;
    }

    public void setVal(int val) {
        this.val = val;
    }
}
